package com.pt25.base.dep.llm.test;

import dev.langchain4j.model.openai.OpenAiChatModel;

public class LlmHelloWorld {
    public static void main(String[] args) {
        OpenAiChatModel model = OpenAiChatModel.builder()
                .baseUrl("http://langchain4j.dev/demo/openai/v1")
                .apiKey("demo")
                .modelName("gpt-4o-mini")
                .build();
        String response = model.chat("say 'hello world'");
        System.out.println(response);
    }
}
